package org.samith.dao;

import java.util.Collection;

import org.samith.entity.ServiceType;
import org.samith.entity.SubscribedService;
import org.samith.entity.Subscriber;

public interface SubscribedServiceDao extends BaseDao<SubscribedService> {
	public Collection<SubscribedService> findSubscribedServicesBySubscriberId(
			Long subscriberId);

	public Collection<SubscribedService> findSubscribedServicesByUserId(
			Long userId);

	public boolean hasSubscribedToService(ServiceType userId,
			Subscriber subscriberId);

	public SubscribedService getSubscribedToServiceRecord(
			ServiceType serviceType, Subscriber subscriber);
}
